Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
preparing tests for compact reference to infraspecific taxon.
Browse files Browse the repository at this point in the history
but still let Bauble provide the complete classification.
  • Loading branch information
mfrasca committed Jan 8, 2016
1 parent 034ed79 commit f83d4ec
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions bauble/plugins/garden/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,6 +1039,27 @@ def test_species_str_be_specific_in_infraspecific(self):
sp_str = self.ac2.species_str()
self.assertEquals(remove_zws(sp_str), s)

def test_species_str_unsorted_infraspecific(self):
'be specific qualifying infraspecific identification - still unused'
## add to species with variety and refer to it as cf.
self.sp3.set_infrasp(1, u'var.', u'aizoon')
self.sp3.set_infrasp(2, u'subvar.', u'brevifolia')
self.sp3.set_infrasp(3, u'f.', u'multicaulis')
self.ac2.id_qual = u'cf.'
self.ac2.id_qual_rank = u'f.'
#s = u"Echinocactus grusonii f. cf. multicaulis"
sp_str = self.ac2.species_str()
#self.assertEquals(remove_zws(sp_str), s)
self.assertTrue(sp_str.endswith("f. cf. multicaulis"))

self.sp3.set_infrasp(4, u'subf.', u'surculosa')
self.ac2.id_qual = u'cf.'
self.ac2.id_qual_rank = u'subf.'
#s = u"Echinocactus grusonii subf. cf. surculosa"
sp_str = self.ac2.species_str()
#self.assertEquals(remove_zws(sp_str), s)
self.assertTrue(sp_str.endswith("subf. cf. surculosa"))


class AccessionTests(GardenTestCase):

Expand Down

0 comments on commit f83d4ec

Please sign in to comment.