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')