Beispiel #1
0
    def test__check_if_special_returns_special_when_sameday(self):
        notes = Notes()
        notes_to_check =  {'width': '', 'height': '', 'stock': '',
                           'stockname': '', 'stockweight': '', 'quantity': '', 'notes': '',
                           'group': 'S', 'type': '', 'pages': '', 'is_special': ''}

        result_notes = notes._check_if_special(notes_to_check)

        self.assertEqual("special", result_notes["is_special"], "Groups are "
                                                                "different")
Beispiel #2
0
    def test__check_if_special_returns_special_when_special_notes_drill(self):
        notes = Notes()
        notes_to_check = {'width': '', 'height': '', 'stock': '',
                          'stockname': '', 'stockweight': '', 'quantity': '',
                          'notes': 'drill scoring tracK ',
                          'group': '', 'type': '', 'pages': '',
                          'is_special': ''}

        result_notes = notes._check_if_special(notes_to_check)

        self.assertEqual("special", result_notes["is_special"], "There is no special note in notes['notes']")