def test_property_issue_label_when_exists_only_year(self): """ When exists only ``year`` the property must return something like: 2013 """ pkg_analyzer = ArticlePkg() pkg_analyzer.issue_year = 2014 self.assertEqual(pkg_analyzer.issue_label, '2014')
def test_property_issue_label_when_exists_year_suppl_number(self): """ When exists only ``year``, ``supplement number`` and supplement of volume the property must return something like: 2014 suppl. N23 """ pkg_analyzer = ArticlePkg() pkg_analyzer.issue_year = 2014 pkg_analyzer.issue_suppl_number = '23' self.assertEqual(pkg_analyzer.issue_label, '2014 suppl. N23')
def test_property_issue_label_when_exists_only_year_and_number(self): """ When exists only ``year`` and ``volume`` the property must return something like: 2013 V18 """ pkg_analyzer = ArticlePkg() pkg_analyzer.issue_year = 2014 pkg_analyzer.issue_number = '5' self.assertEqual(pkg_analyzer.issue_label, '2014 N5')
def test_property_issue_label_when_exists_year_volume_number(self): """ When exists ``year``, ``volume`` and ``number`` must return something like: 2013 V18 N4. """ pkg_analyzer = ArticlePkg() pkg_analyzer.issue_year = 2014 pkg_analyzer.issue_volume = '31' pkg_analyzer.issue_number = '1' self.assertEqual(pkg_analyzer.issue_label, '2014 V31 N1')