'``FigConfiguration._parse_app_volumes`` returns a ``AttachedVolume``
instance containing the volume mountpoint given a valid configuration.'

def test_valid_fig_config_volumes(self):

    config = {u'postgres': {u'image': u'sample/postgres', u'volumes': ['/var/db/data']}}
    parser = FigConfiguration(config)
    expected_result = AttachedVolume(manifestation=Manifestation(dataset=Dataset(dataset_id=dataset_id_from_name(u'postgres'), metadata=pmap({u'name': u'postgres'})), primary=True), mountpoint=FilePath('/var/db/data'))
    volume = parser._parse_app_volumes(u'postgres', config[u'postgres'][u'volumes'])
    self.assertEqual(expected_result, volume)
