Beispiel #1
0
 def test_check_barcode_assigned_no_exist(self):
     with self.assertRaises(ValueError):
         check_barcode_assigned('100000001')
Beispiel #2
0
    def test_check_barcode_assigned(self):
        obs = check_barcode_assigned('000000001')
        self.assertTrue(obs)

        obs = check_barcode_assigned('000000010')
        self.assertFalse(obs)