import unittest
from adobe_trial_extender import *


TEST_APPLICATION_XML = r"""
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
	<Payload adobeCode="{PPRO-12.0.0-64-ADBEADBEADBEADBEADBEA}">
		<Data key="AMTConfigPath">C:\Program Files\Adobe\Adobe Premiere Pro CC 2018\AMT\application.xml</Data><Data key="APPLICATION_CUSTOMIZATION_DATA">SuppressSerialWF</Data><Data key="BridgeTalkCode">/adobe/bridgetalk/premierepro-12.0</Data><Data key="DefaultDriverPayload">{PPRO-12.0.0-64-ADBEADBEADBEADBEADBEA}</Data><Data key="InstallDate">1564329820</Data><Data key="LicensingCode">V7{}PremierePro-12-Win-GM</Data><Data key="ProductVersion">12.0.0</Data><Data key="SAPCode">PPRO</Data><Data key="defaultAdobeCode">{PPRO-12.0.0-64-ADBEADBEADBEADBEADBEA}</Data><Data key="driverAMTConfigPath">C:\Program Files\Adobe\Adobe Premiere Pro CC 2018\AMT\application.xml</Data><Data key="driverLEID">V7{}PremierePro-12-Win-GM</Data><Data key="installedLanguages">en_US</Data></Payload>
	<Other adobeCode="V7{}PremierePro-12-Win-GM">
		<!-- Note: This is a win-only debug serial -->
		<Data key="EPIC_APP">Adobe Premiere Pro CC 2018</Data><Data key="EPIC_APP_132">Adobe Premiere Pro CC 2018</Data><Data key="PayloadCode">{PPRO-12.0.0-64-ADBEADBEADBEADBEADBEA}</Data><Data key="TrialSerialNumber">976087079113928897525205</Data></Other>
	<Other adobeCode="/adobe/bridgetalk/premierepro-12.0">
		<Data key="Specifier">premierepro-12.0</Data>
		<Data key="ExecutableBasename">Adobe Premiere Pro</Data>
		<Data key="DisplayName">Adobe Premiere Pro CC 2018</Data>
		<Data key="SupportsESTK">true</Data>
		<Data key="OMVDictionary">dynamic</Data>
		<!-- Note: This is a win-specific datum -->
		<Data key="WindowClassName">Premiere Pro</Data>
	</Other>
	<Other adobeCode="/adobe/bridgetalk/groups">
		<Data key="Group001">/adobe/bridgetalk/groups/cs/3/acrobat-8.0</Data>
		<Data key="Group002">/adobe/bridgetalk/groups/cs/3/aftereffects-8.0</Data>
		<Data key="Group003">/adobe/bridgetalk/groups/cs/3/soundbooth-1.0</Data>
		<Data key="Group004">/adobe/bridgetalk/groups/cs/3/bridge-2.0</Data>
		<Data key="Group005">/adobe/bridgetalk/groups/cs/3/contribute-4.5</Data>
		<Data key="Group006">/adobe/bridgetalk/groups/cs/3/devicecentral-1.0</Data>
		<Data key="Group007">/adobe/bridgetalk/groups/cs/3/dreamweaver-9.0</Data>
		<Data key="Group008">/adobe/bridgetalk/groups/cs/3/encore-3.0</Data>
		<Data key="Group009">/adobe/bridgetalk/groups/cs/3/estoolkit-2.0</Data>
		<Data key="Group010">/adobe/bridgetalk/groups/cs/3/fireworks-9.0</Data>
		<Data key="Group011">/adobe/bridgetalk/groups/cs/3/flash-9.0</Data>
		<Data key="Group012">/adobe/bridgetalk/groups/cs/3/illustrator-13.0</Data>
		<Data key="Group013">/adobe/bridgetalk/groups/cs/3/indesign-5.0</Data>
		<Data key="Group014">/adobe/bridgetalk/groups/cs/3/indesignserver-5.0</Data>
		<Data key="Group015">/adobe/bridgetalk/groups/cs/3/incopy-5.0</Data>
		<Data key="Group016">/adobe/bridgetalk/groups/cs/3/photoshop-10.0</Data>
		<Data key="Group017">/adobe/bridgetalk/groups/cs/3/premiere-3.0</Data>
		<Data key="Group018">/adobe/bridgetalk/groups/cs/3/premierepro-3.0</Data>
		<Data key="Group019">/adobe/bridgetalk/groups/cs/3/stockphotos-1.5</Data>
		<Data key="Group020">/adobe/bridgetalk/groups/cs/3/audition-3.0</Data>
		<Data key="Group021">/adobe/bridgetalk/groups/cs/4/acrobat-9.0</Data>
		<Data key="Group022">/adobe/bridgetalk/groups/cs/4/aftereffects-9.0</Data>
		<Data key="Group023">/adobe/bridgetalk/groups/cs/4/soundbooth-2.0</Data>
		<Data key="Group024">/adobe/bridgetalk/groups/cs/4/bridge-3.0</Data>
		<Data key="Group025">/adobe/bridgetalk/groups/cs/4/contribute-5.0</Data>
		<Data key="Group026">/adobe/bridgetalk/groups/cs/4/devicecentral-2.0</Data>
		<Data key="Group027">/adobe/bridgetalk/groups/cs/4/dreamweaver-10.0</Data>
		<Data key="Group028">/adobe/bridgetalk/groups/cs/4/encore-4.0</Data>
		<Data key="Group029">/adobe/bridgetalk/groups/cs/4/estoolkit-3.0</Data>
		<Data key="Group030">/adobe/bridgetalk/groups/cs/4/fireworks-10.0</Data>
		<Data key="Group031">/adobe/bridgetalk/groups/cs/4/flash-10.0</Data>
		<Data key="Group032">/adobe/bridgetalk/groups/cs/4/illustrator-14.0</Data>
		<Data key="Group033">/adobe/bridgetalk/groups/cs/4/indesign-6.0</Data>
		<Data key="Group034">/adobe/bridgetalk/groups/cs/4/indesignserver-6.0</Data>
		<Data key="Group035">/adobe/bridgetalk/groups/cs/4/incopy-6.0</Data>
		<Data key="Group036">/adobe/bridgetalk/groups/cs/4/photoshop-11.*</Data>
		<Data key="Group037">/adobe/bridgetalk/groups/cs/4/premierepro-4.0</Data>
		<Data key="Group038">/adobe/bridgetalk/groups/cs/4/audition-4.0</Data>
		<Data key="Group039">/adobe/bridgetalk/groups/cs/4/ame-1.0</Data>
		<Data key="Group040">/adobe/bridgetalk/groups/cs/4/exman-2.0</Data>
		<Data key="Group041">/adobe/bridgetalk/groups/cs/5/acrobat-9.0</Data>
		<Data key="Group042">/adobe/bridgetalk/groups/cs/5/aftereffects-10.0</Data>
		<Data key="Group043">/adobe/bridgetalk/groups/cs/5/soundbooth-3.0</Data>
		<Data key="Group044">/adobe/bridgetalk/groups/cs/5/bridge-4.0</Data>
		<Data key="Group045">/adobe/bridgetalk/groups/cs/5/contribute-6.0</Data>
		<Data key="Group046">/adobe/bridgetalk/groups/cs/5/devicecentral-3.0</Data>
		<Data key="Group047">/adobe/bridgetalk/groups/cs/5/dreamweaver-11.0</Data>
		<Data key="Group048">/adobe/bridgetalk/groups/cs/5/encore-5.0</Data>
		<Data key="Group049">/adobe/bridgetalk/groups/cs/5/estoolkit-3.5</Data>
		<Data key="Group050">/adobe/bridgetalk/groups/cs/5/fireworks-11.0</Data>
		<Data key="Group051">/adobe/bridgetalk/groups/cs/5/flash-11.0</Data>
		<Data key="Group052">/adobe/bridgetalk/groups/cs/5/illustrator-15.0</Data>
		<Data key="Group053">/adobe/bridgetalk/groups/cs/5/indesign-7.0</Data>
		<Data key="Group054">/adobe/bridgetalk/groups/cs/5/indesignserver-7.0</Data>
		<Data key="Group055">/adobe/bridgetalk/groups/cs/5/incopy-7.0</Data>
		<Data key="Group056">/adobe/bridgetalk/groups/cs/5/photoshop-12.*</Data>
		<Data key="Group057">/adobe/bridgetalk/groups/cs/5/premierepro-5.0</Data>
		<Data key="Group058">/adobe/bridgetalk/groups/cs/5/audition-5.0</Data>
		<Data key="Group059">/adobe/bridgetalk/groups/cs/5/ame-2.0</Data>
		<Data key="Group060">/adobe/bridgetalk/groups/cs/5/exman-3.0</Data>
		<Data key="Group061">/adobe/bridgetalk/groups/cs/5/flashbuilder-4.0</Data>
		<Data key="Group062">/adobe/bridgetalk/groups/cs/5/flashcatalyst-1.0</Data>
		<Data key="Group063">/adobe/bridgetalk/groups/ts/1/captivate3-en_US</Data>
		<Data key="Group064">/adobe/bridgetalk/groups/ts/1/captivate3-fr_FR</Data>
		<Data key="Group065">/adobe/bridgetalk/groups/ts/1/captivate3-it_IT</Data>
		<Data key="Group066">/adobe/bridgetalk/groups/ts/1/captivate3-ja_JP</Data>
		<Data key="Group067">/adobe/bridgetalk/groups/ts/1/captivate3-es_ES</Data>
		<Data key="Group068">/adobe/bridgetalk/groups/ts/1/captivate3-de_DE</Data>
		<Data key="Group069">/adobe/bridgetalk/groups/ts/2/captivate-4.0</Data>
		<Data key="Group070">/adobe/bridgetalk/groups/el/2/captivate-5.0</Data>
		<Data key="Group071">/adobe/bridgetalk/groups/as/1/acrobat-10.0</Data>
		<Data key="Group072">/adobe/bridgetalk/groups/ts/3/robohelp-9.0</Data>
		<Data key="Group073">/adobe/bridgetalk/groups/ts/3/framemaker-10.0</Data>
		<Data key="Group074">/adobe/bridgetalk/groups/cs/55/aftereffects-10.5</Data>
		<Data key="Group075">/adobe/bridgetalk/groups/cs/55/audition-4.0</Data>
		<Data key="Group076">/adobe/bridgetalk/groups/cs/55/bridge-4.1</Data>
		<Data key="Group077">/adobe/bridgetalk/groups/cs/55/contribute-6.1</Data>
		<Data key="Group078">/adobe/bridgetalk/groups/cs/55/devicecentral-3.5</Data>
		<Data key="Group079">/adobe/bridgetalk/groups/cs/55/dreamweaver-11.5</Data>
		<Data key="Group080">/adobe/bridgetalk/groups/cs/55/encore-5.1</Data>
		<Data key="Group081">/adobe/bridgetalk/groups/cs/55/estoolkit-3.6</Data>
		<Data key="Group082">/adobe/bridgetalk/groups/cs/55/fireworks-11.1</Data>
		<Data key="Group083">/adobe/bridgetalk/groups/cs/55/flash-11.5</Data>
		<Data key="Group084">/adobe/bridgetalk/groups/cs/55/illustrator-15.1</Data>
		<Data key="Group085">/adobe/bridgetalk/groups/cs/55/indesign-7.5</Data>
		<Data key="Group086">/adobe/bridgetalk/groups/cs/55/indesignserver-7.5</Data>
		<Data key="Group087">/adobe/bridgetalk/groups/cs/55/incopy-7.5</Data>
		<Data key="Group088">/adobe/bridgetalk/groups/cs/55/photoshop-55.*</Data>
		<Data key="Group089">/adobe/bridgetalk/groups/cs/55/premierepro-5.5</Data>
		<Data key="Group090">/adobe/bridgetalk/groups/cs/55/ame-2.5</Data>
		<Data key="Group091">/adobe/bridgetalk/groups/cs/55/exman-5.5</Data>
		<Data key="Group092">/adobe/bridgetalk/groups/cs/55/flashbuilder-4.5</Data>
		<Data key="Group093">/adobe/bridgetalk/groups/cs/55/flashcatalyst-1.5</Data>
		<Data key="Group094">/adobe/bridgetalk/groups/cs/55/switchboard-2.0</Data>
		<Data key="Group095">/adobe/bridgetalk/groups/el/25/captivate-5.5</Data>
		<Data key="Group096">/adobe/bridgetalk/groups/cs/60/aftereffects-11.0</Data>
		<Data key="Group097">/adobe/bridgetalk/groups/cs/60/audition-5.0</Data>
		<Data key="Group098">/adobe/bridgetalk/groups/cs/60/bridge-5.*</Data>
		<Data key="Group099">/adobe/bridgetalk/groups/cs/60/contribute-6.88</Data>
		<Data key="Group100">/adobe/bridgetalk/groups/cs/60/devicecentral-4.0</Data>
		<Data key="Group101">/adobe/bridgetalk/groups/cs/60/dreamweaver-12.0</Data>
		<Data key="Group102">/adobe/bridgetalk/groups/cs/60/encore-6.0</Data>
		<Data key="Group103">/adobe/bridgetalk/groups/cs/60/estoolkit-3.8</Data>
		<Data key="Group104">/adobe/bridgetalk/groups/cs/60/fireworks-12.0</Data>
		<Data key="Group105">/adobe/bridgetalk/groups/cs/60/flash-12.0</Data>
		<Data key="Group106">/adobe/bridgetalk/groups/cs/60/illustrator-16.*</Data>
		<Data key="Group107">/adobe/bridgetalk/groups/cs/60/indesign-8.0</Data>
		<Data key="Group108">/adobe/bridgetalk/groups/cs/60/indesignserver-8.0</Data>
		<Data key="Group109">/adobe/bridgetalk/groups/cs/60/incopy-8.0</Data>
		<Data key="Group110">/adobe/bridgetalk/groups/cs/60/photoshop-60.*</Data>
		<Data key="Group111">/adobe/bridgetalk/groups/cs/60/premierepro-6.0</Data>
		<Data key="Group112">/adobe/bridgetalk/groups/cs/60/ame-6.0</Data>
		<Data key="Group113">/adobe/bridgetalk/groups/cs/60/exman-6.0</Data>
		<Data key="Group114">/adobe/bridgetalk/groups/cs/60/flashbuilder-4.52</Data>
		<Data key="Group115">/adobe/bridgetalk/groups/cs/60/switchboard-2.0</Data>
		<Data key="Group116">/adobe/bridgetalk/groups/cs/60/prelude-1.0</Data>
		<Data key="Group117">/adobe/bridgetalk/groups/cs/60/speedgrade-6.0</Data>
		<Data key="Group118">/adobe/bridgetalk/groups/el/60/captivate-60.*</Data>
		<Data key="Group119">/adobe/bridgetalk/groups/ts/4/robohelp-10.0</Data>
		<Data key="Group120">/adobe/bridgetalk/groups/ts/4/framemaker-11.0</Data>
		<Data key="Group121">/adobe/bridgetalk/groups/cs/70/audition-6.0</Data>
		<Data key="Group122">/adobe/bridgetalk/groups/cs/70/bridge-6.*</Data>
		<Data key="Group123">/adobe/bridgetalk/groups/cs/70/dreamweaver-13.0</Data>
		<Data key="Group124">/adobe/bridgetalk/groups/cs/70/encore-7.0</Data>
		<Data key="Group125">/adobe/bridgetalk/groups/cs/70/fireworks-13.0</Data>
		<Data key="Group126">/adobe/bridgetalk/groups/cs/70/flash-13.0</Data>
		<Data key="Group127">/adobe/bridgetalk/groups/cs/70/illustrator-17.*</Data>
		<Data key="Group128">/adobe/bridgetalk/groups/cs/70/indesign-9.*</Data>
		<Data key="Group129">/adobe/bridgetalk/groups/cs/70/indesignserver-9.0</Data>
		<Data key="Group130">/adobe/bridgetalk/groups/cs/70/incopy-9.*</Data>
		<Data key="Group131">/adobe/bridgetalk/groups/cs/70/photoshop-70.*</Data>
		<Data key="Group132">/adobe/bridgetalk/groups/cs/70/premierepro-7.0</Data>
		<Data key="Group133">/adobe/bridgetalk/groups/cs/70/ame-7.0</Data>
		<Data key="Group134">/adobe/bridgetalk/groups/cs/70/exman-7.0</Data>
		<Data key="Group135">/adobe/bridgetalk/groups/cs/70/flashbuilder-5.0</Data>
		<Data key="Group136">/adobe/bridgetalk/groups/cs/70/prelude-2.0</Data>
		<Data key="Group137">/adobe/bridgetalk/groups/cs/70/estoolkit-4.0</Data>
		<Data key="Group138">/adobe/bridgetalk/groups/cs/70/aftereffects-12.0</Data>
		<Data key="Group139">/adobe/bridgetalk/groups/el/70/captivate-70.*</Data>
	</Other>
</Configuration>
"""


TEST_APPLICATION_XML_INCREMENTED = r"""
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
	<Payload adobeCode="{PPRO-12.0.0-64-ADBEADBEADBEADBEADBEA}">
		<Data key="AMTConfigPath">C:\Program Files\Adobe\Adobe Premiere Pro CC 2018\AMT\application.xml</Data><Data key="APPLICATION_CUSTOMIZATION_DATA">SuppressSerialWF</Data><Data key="BridgeTalkCode">/adobe/bridgetalk/premierepro-12.0</Data><Data key="DefaultDriverPayload">{PPRO-12.0.0-64-ADBEADBEADBEADBEADBEA}</Data><Data key="InstallDate">1564329820</Data><Data key="LicensingCode">V7{}PremierePro-12-Win-GM</Data><Data key="ProductVersion">12.0.0</Data><Data key="SAPCode">PPRO</Data><Data key="defaultAdobeCode">{PPRO-12.0.0-64-ADBEADBEADBEADBEADBEA}</Data><Data key="driverAMTConfigPath">C:\Program Files\Adobe\Adobe Premiere Pro CC 2018\AMT\application.xml</Data><Data key="driverLEID">V7{}PremierePro-12-Win-GM</Data><Data key="installedLanguages">en_US</Data></Payload>
	<Other adobeCode="V7{}PremierePro-12-Win-GM">
		<!-- Note: This is a win-only debug serial -->
		<Data key="EPIC_APP">Adobe Premiere Pro CC 2018</Data><Data key="EPIC_APP_132">Adobe Premiere Pro CC 2018</Data><Data key="PayloadCode">{PPRO-12.0.0-64-ADBEADBEADBEADBEADBEA}</Data><Data key="TrialSerialNumber">976087079113928897525206</Data></Other>
	<Other adobeCode="/adobe/bridgetalk/premierepro-12.0">
		<Data key="Specifier">premierepro-12.0</Data>
		<Data key="ExecutableBasename">Adobe Premiere Pro</Data>
		<Data key="DisplayName">Adobe Premiere Pro CC 2018</Data>
		<Data key="SupportsESTK">true</Data>
		<Data key="OMVDictionary">dynamic</Data>
		<!-- Note: This is a win-specific datum -->
		<Data key="WindowClassName">Premiere Pro</Data>
	</Other>
	<Other adobeCode="/adobe/bridgetalk/groups">
		<Data key="Group001">/adobe/bridgetalk/groups/cs/3/acrobat-8.0</Data>
		<Data key="Group002">/adobe/bridgetalk/groups/cs/3/aftereffects-8.0</Data>
		<Data key="Group003">/adobe/bridgetalk/groups/cs/3/soundbooth-1.0</Data>
		<Data key="Group004">/adobe/bridgetalk/groups/cs/3/bridge-2.0</Data>
		<Data key="Group005">/adobe/bridgetalk/groups/cs/3/contribute-4.5</Data>
		<Data key="Group006">/adobe/bridgetalk/groups/cs/3/devicecentral-1.0</Data>
		<Data key="Group007">/adobe/bridgetalk/groups/cs/3/dreamweaver-9.0</Data>
		<Data key="Group008">/adobe/bridgetalk/groups/cs/3/encore-3.0</Data>
		<Data key="Group009">/adobe/bridgetalk/groups/cs/3/estoolkit-2.0</Data>
		<Data key="Group010">/adobe/bridgetalk/groups/cs/3/fireworks-9.0</Data>
		<Data key="Group011">/adobe/bridgetalk/groups/cs/3/flash-9.0</Data>
		<Data key="Group012">/adobe/bridgetalk/groups/cs/3/illustrator-13.0</Data>
		<Data key="Group013">/adobe/bridgetalk/groups/cs/3/indesign-5.0</Data>
		<Data key="Group014">/adobe/bridgetalk/groups/cs/3/indesignserver-5.0</Data>
		<Data key="Group015">/adobe/bridgetalk/groups/cs/3/incopy-5.0</Data>
		<Data key="Group016">/adobe/bridgetalk/groups/cs/3/photoshop-10.0</Data>
		<Data key="Group017">/adobe/bridgetalk/groups/cs/3/premiere-3.0</Data>
		<Data key="Group018">/adobe/bridgetalk/groups/cs/3/premierepro-3.0</Data>
		<Data key="Group019">/adobe/bridgetalk/groups/cs/3/stockphotos-1.5</Data>
		<Data key="Group020">/adobe/bridgetalk/groups/cs/3/audition-3.0</Data>
		<Data key="Group021">/adobe/bridgetalk/groups/cs/4/acrobat-9.0</Data>
		<Data key="Group022">/adobe/bridgetalk/groups/cs/4/aftereffects-9.0</Data>
		<Data key="Group023">/adobe/bridgetalk/groups/cs/4/soundbooth-2.0</Data>
		<Data key="Group024">/adobe/bridgetalk/groups/cs/4/bridge-3.0</Data>
		<Data key="Group025">/adobe/bridgetalk/groups/cs/4/contribute-5.0</Data>
		<Data key="Group026">/adobe/bridgetalk/groups/cs/4/devicecentral-2.0</Data>
		<Data key="Group027">/adobe/bridgetalk/groups/cs/4/dreamweaver-10.0</Data>
		<Data key="Group028">/adobe/bridgetalk/groups/cs/4/encore-4.0</Data>
		<Data key="Group029">/adobe/bridgetalk/groups/cs/4/estoolkit-3.0</Data>
		<Data key="Group030">/adobe/bridgetalk/groups/cs/4/fireworks-10.0</Data>
		<Data key="Group031">/adobe/bridgetalk/groups/cs/4/flash-10.0</Data>
		<Data key="Group032">/adobe/bridgetalk/groups/cs/4/illustrator-14.0</Data>
		<Data key="Group033">/adobe/bridgetalk/groups/cs/4/indesign-6.0</Data>
		<Data key="Group034">/adobe/bridgetalk/groups/cs/4/indesignserver-6.0</Data>
		<Data key="Group035">/adobe/bridgetalk/groups/cs/4/incopy-6.0</Data>
		<Data key="Group036">/adobe/bridgetalk/groups/cs/4/photoshop-11.*</Data>
		<Data key="Group037">/adobe/bridgetalk/groups/cs/4/premierepro-4.0</Data>
		<Data key="Group038">/adobe/bridgetalk/groups/cs/4/audition-4.0</Data>
		<Data key="Group039">/adobe/bridgetalk/groups/cs/4/ame-1.0</Data>
		<Data key="Group040">/adobe/bridgetalk/groups/cs/4/exman-2.0</Data>
		<Data key="Group041">/adobe/bridgetalk/groups/cs/5/acrobat-9.0</Data>
		<Data key="Group042">/adobe/bridgetalk/groups/cs/5/aftereffects-10.0</Data>
		<Data key="Group043">/adobe/bridgetalk/groups/cs/5/soundbooth-3.0</Data>
		<Data key="Group044">/adobe/bridgetalk/groups/cs/5/bridge-4.0</Data>
		<Data key="Group045">/adobe/bridgetalk/groups/cs/5/contribute-6.0</Data>
		<Data key="Group046">/adobe/bridgetalk/groups/cs/5/devicecentral-3.0</Data>
		<Data key="Group047">/adobe/bridgetalk/groups/cs/5/dreamweaver-11.0</Data>
		<Data key="Group048">/adobe/bridgetalk/groups/cs/5/encore-5.0</Data>
		<Data key="Group049">/adobe/bridgetalk/groups/cs/5/estoolkit-3.5</Data>
		<Data key="Group050">/adobe/bridgetalk/groups/cs/5/fireworks-11.0</Data>
		<Data key="Group051">/adobe/bridgetalk/groups/cs/5/flash-11.0</Data>
		<Data key="Group052">/adobe/bridgetalk/groups/cs/5/illustrator-15.0</Data>
		<Data key="Group053">/adobe/bridgetalk/groups/cs/5/indesign-7.0</Data>
		<Data key="Group054">/adobe/bridgetalk/groups/cs/5/indesignserver-7.0</Data>
		<Data key="Group055">/adobe/bridgetalk/groups/cs/5/incopy-7.0</Data>
		<Data key="Group056">/adobe/bridgetalk/groups/cs/5/photoshop-12.*</Data>
		<Data key="Group057">/adobe/bridgetalk/groups/cs/5/premierepro-5.0</Data>
		<Data key="Group058">/adobe/bridgetalk/groups/cs/5/audition-5.0</Data>
		<Data key="Group059">/adobe/bridgetalk/groups/cs/5/ame-2.0</Data>
		<Data key="Group060">/adobe/bridgetalk/groups/cs/5/exman-3.0</Data>
		<Data key="Group061">/adobe/bridgetalk/groups/cs/5/flashbuilder-4.0</Data>
		<Data key="Group062">/adobe/bridgetalk/groups/cs/5/flashcatalyst-1.0</Data>
		<Data key="Group063">/adobe/bridgetalk/groups/ts/1/captivate3-en_US</Data>
		<Data key="Group064">/adobe/bridgetalk/groups/ts/1/captivate3-fr_FR</Data>
		<Data key="Group065">/adobe/bridgetalk/groups/ts/1/captivate3-it_IT</Data>
		<Data key="Group066">/adobe/bridgetalk/groups/ts/1/captivate3-ja_JP</Data>
		<Data key="Group067">/adobe/bridgetalk/groups/ts/1/captivate3-es_ES</Data>
		<Data key="Group068">/adobe/bridgetalk/groups/ts/1/captivate3-de_DE</Data>
		<Data key="Group069">/adobe/bridgetalk/groups/ts/2/captivate-4.0</Data>
		<Data key="Group070">/adobe/bridgetalk/groups/el/2/captivate-5.0</Data>
		<Data key="Group071">/adobe/bridgetalk/groups/as/1/acrobat-10.0</Data>
		<Data key="Group072">/adobe/bridgetalk/groups/ts/3/robohelp-9.0</Data>
		<Data key="Group073">/adobe/bridgetalk/groups/ts/3/framemaker-10.0</Data>
		<Data key="Group074">/adobe/bridgetalk/groups/cs/55/aftereffects-10.5</Data>
		<Data key="Group075">/adobe/bridgetalk/groups/cs/55/audition-4.0</Data>
		<Data key="Group076">/adobe/bridgetalk/groups/cs/55/bridge-4.1</Data>
		<Data key="Group077">/adobe/bridgetalk/groups/cs/55/contribute-6.1</Data>
		<Data key="Group078">/adobe/bridgetalk/groups/cs/55/devicecentral-3.5</Data>
		<Data key="Group079">/adobe/bridgetalk/groups/cs/55/dreamweaver-11.5</Data>
		<Data key="Group080">/adobe/bridgetalk/groups/cs/55/encore-5.1</Data>
		<Data key="Group081">/adobe/bridgetalk/groups/cs/55/estoolkit-3.6</Data>
		<Data key="Group082">/adobe/bridgetalk/groups/cs/55/fireworks-11.1</Data>
		<Data key="Group083">/adobe/bridgetalk/groups/cs/55/flash-11.5</Data>
		<Data key="Group084">/adobe/bridgetalk/groups/cs/55/illustrator-15.1</Data>
		<Data key="Group085">/adobe/bridgetalk/groups/cs/55/indesign-7.5</Data>
		<Data key="Group086">/adobe/bridgetalk/groups/cs/55/indesignserver-7.5</Data>
		<Data key="Group087">/adobe/bridgetalk/groups/cs/55/incopy-7.5</Data>
		<Data key="Group088">/adobe/bridgetalk/groups/cs/55/photoshop-55.*</Data>
		<Data key="Group089">/adobe/bridgetalk/groups/cs/55/premierepro-5.5</Data>
		<Data key="Group090">/adobe/bridgetalk/groups/cs/55/ame-2.5</Data>
		<Data key="Group091">/adobe/bridgetalk/groups/cs/55/exman-5.5</Data>
		<Data key="Group092">/adobe/bridgetalk/groups/cs/55/flashbuilder-4.5</Data>
		<Data key="Group093">/adobe/bridgetalk/groups/cs/55/flashcatalyst-1.5</Data>
		<Data key="Group094">/adobe/bridgetalk/groups/cs/55/switchboard-2.0</Data>
		<Data key="Group095">/adobe/bridgetalk/groups/el/25/captivate-5.5</Data>
		<Data key="Group096">/adobe/bridgetalk/groups/cs/60/aftereffects-11.0</Data>
		<Data key="Group097">/adobe/bridgetalk/groups/cs/60/audition-5.0</Data>
		<Data key="Group098">/adobe/bridgetalk/groups/cs/60/bridge-5.*</Data>
		<Data key="Group099">/adobe/bridgetalk/groups/cs/60/contribute-6.88</Data>
		<Data key="Group100">/adobe/bridgetalk/groups/cs/60/devicecentral-4.0</Data>
		<Data key="Group101">/adobe/bridgetalk/groups/cs/60/dreamweaver-12.0</Data>
		<Data key="Group102">/adobe/bridgetalk/groups/cs/60/encore-6.0</Data>
		<Data key="Group103">/adobe/bridgetalk/groups/cs/60/estoolkit-3.8</Data>
		<Data key="Group104">/adobe/bridgetalk/groups/cs/60/fireworks-12.0</Data>
		<Data key="Group105">/adobe/bridgetalk/groups/cs/60/flash-12.0</Data>
		<Data key="Group106">/adobe/bridgetalk/groups/cs/60/illustrator-16.*</Data>
		<Data key="Group107">/adobe/bridgetalk/groups/cs/60/indesign-8.0</Data>
		<Data key="Group108">/adobe/bridgetalk/groups/cs/60/indesignserver-8.0</Data>
		<Data key="Group109">/adobe/bridgetalk/groups/cs/60/incopy-8.0</Data>
		<Data key="Group110">/adobe/bridgetalk/groups/cs/60/photoshop-60.*</Data>
		<Data key="Group111">/adobe/bridgetalk/groups/cs/60/premierepro-6.0</Data>
		<Data key="Group112">/adobe/bridgetalk/groups/cs/60/ame-6.0</Data>
		<Data key="Group113">/adobe/bridgetalk/groups/cs/60/exman-6.0</Data>
		<Data key="Group114">/adobe/bridgetalk/groups/cs/60/flashbuilder-4.52</Data>
		<Data key="Group115">/adobe/bridgetalk/groups/cs/60/switchboard-2.0</Data>
		<Data key="Group116">/adobe/bridgetalk/groups/cs/60/prelude-1.0</Data>
		<Data key="Group117">/adobe/bridgetalk/groups/cs/60/speedgrade-6.0</Data>
		<Data key="Group118">/adobe/bridgetalk/groups/el/60/captivate-60.*</Data>
		<Data key="Group119">/adobe/bridgetalk/groups/ts/4/robohelp-10.0</Data>
		<Data key="Group120">/adobe/bridgetalk/groups/ts/4/framemaker-11.0</Data>
		<Data key="Group121">/adobe/bridgetalk/groups/cs/70/audition-6.0</Data>
		<Data key="Group122">/adobe/bridgetalk/groups/cs/70/bridge-6.*</Data>
		<Data key="Group123">/adobe/bridgetalk/groups/cs/70/dreamweaver-13.0</Data>
		<Data key="Group124">/adobe/bridgetalk/groups/cs/70/encore-7.0</Data>
		<Data key="Group125">/adobe/bridgetalk/groups/cs/70/fireworks-13.0</Data>
		<Data key="Group126">/adobe/bridgetalk/groups/cs/70/flash-13.0</Data>
		<Data key="Group127">/adobe/bridgetalk/groups/cs/70/illustrator-17.*</Data>
		<Data key="Group128">/adobe/bridgetalk/groups/cs/70/indesign-9.*</Data>
		<Data key="Group129">/adobe/bridgetalk/groups/cs/70/indesignserver-9.0</Data>
		<Data key="Group130">/adobe/bridgetalk/groups/cs/70/incopy-9.*</Data>
		<Data key="Group131">/adobe/bridgetalk/groups/cs/70/photoshop-70.*</Data>
		<Data key="Group132">/adobe/bridgetalk/groups/cs/70/premierepro-7.0</Data>
		<Data key="Group133">/adobe/bridgetalk/groups/cs/70/ame-7.0</Data>
		<Data key="Group134">/adobe/bridgetalk/groups/cs/70/exman-7.0</Data>
		<Data key="Group135">/adobe/bridgetalk/groups/cs/70/flashbuilder-5.0</Data>
		<Data key="Group136">/adobe/bridgetalk/groups/cs/70/prelude-2.0</Data>
		<Data key="Group137">/adobe/bridgetalk/groups/cs/70/estoolkit-4.0</Data>
		<Data key="Group138">/adobe/bridgetalk/groups/cs/70/aftereffects-12.0</Data>
		<Data key="Group139">/adobe/bridgetalk/groups/el/70/captivate-70.*</Data>
	</Other>
</Configuration>
"""


class TestAdobeTrialExtender(unittest.TestCase):

    def test_fiddle_serial_number(self):
        self.maxDiff = len(TEST_APPLICATION_XML) * 1.1
        output = fiddle_serial_number(TEST_APPLICATION_XML)
        self.assertEqual(TEST_APPLICATION_XML_INCREMENTED, output)


if __name__ == '__main__':
    unittest.main()

