'A volume maximum_size config value given as a string specifying a
quanity and K as a unit identifier when parsed creates an
``AttachedVolume`` instance with the corresponding maximum_size
converted from terabytes to bytes.'

def test_volume_max_size_terabytes(self):

    config = dict(version=1, applications={u'mysql-hybridcluster': {u'image': u'clusterhq/mysql:v1.0.0', u'ports': [dict(internal=3306, external=3306)], u'volume': {u'mountpoint': u'/var/lib/mysql', u'maximum_size': '1T'}}})
    parser = FlockerConfiguration(config)
    volume_config = config[u'applications'][u'mysql-hybridcluster'][u'volume']
    volume = parser._parse_volume(volume_config, u'mysql-hybridcluster')
    self.assertEqual(volume.dataset.maximum_size, 1099511627776)
