Ejemplo n.º 1
0
    def test_property_issue_label_when_exists_only_year_and_volume(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_volume = '56'

        self.assertEqual(pkg_analyzer.issue_label, '2014 V56')
Ejemplo n.º 2
0
    def test_property_issue_label_when_exists_only_year_and_volume(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_volume = '56'

        self.assertEqual(pkg_analyzer.issue_label, '2014 V56')
Ejemplo n.º 3
0
    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')
Ejemplo n.º 4
0
    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')
Ejemplo n.º 5
0
    def test_property_issue_label_when_exists_year_number_and_suppl_number(self):
        """
        When exists only ``year``, ``number``, ``supplement number``
        and supplement of volume the property must return something
        like: 2014 N10 suppl. N27
        """
        pkg_analyzer = ArticlePkg()

        pkg_analyzer.issue_year = 2014
        pkg_analyzer.issue_volume = '4'
        pkg_analyzer.issue_suppl_number = '23'

        self.assertEqual(pkg_analyzer.issue_label, '2014 V4 suppl. N23')
Ejemplo n.º 6
0
    def test_property_issue_label_when_exists_year_number_and_suppl_number(
            self):
        """
        When exists only ``year``, ``number``, ``supplement number``
        and supplement of volume the property must return something
        like: 2014 N10 suppl. N27
        """
        pkg_analyzer = ArticlePkg()

        pkg_analyzer.issue_year = 2014
        pkg_analyzer.issue_volume = '4'
        pkg_analyzer.issue_suppl_number = '23'

        self.assertEqual(pkg_analyzer.issue_label, '2014 V4 suppl. N23')