Exemple #1
0
 def test_set_and_name_dupes(self):
     # Execute
     printing = interface.find_printing(
         coll=self.collection, set_code='ICE', name='Forest',
         set_number=None, multiverseid=None)
     # Verify
     self.assertIsNone(printing)
Exemple #2
0
 def test_bad_name(self):
     # Execute
     printing = interface.find_printing(
         coll=self.collection, set_code='ISD', name='foo', set_number='85',
         multiverseid=222911)
     # Verify
     self.assertIsNone(printing)
Exemple #3
0
 def test_not_found(self):
     # Execute
     printing = interface.find_printing(
         coll=self.collection, set_code='foo', name='bar', set_number='baz',
         multiverseid='quux')
     # Verify
     self.assertIsNone(printing)
Exemple #4
0
 def test_get_set_name_num_mv(self):
     # Execute
     printing = interface.find_printing(
         coll=self.collection, set_code='ISD', name='Abattoir Ghoul',
         set_number='85', multiverseid=222911)
     # Verify
     self.assertEqual(
         '958ae1416f8f6287115ccd7c5c61f2415a313546', printing.id_)
Exemple #5
0
 def test_set_name_mv(self):
     # Execute
     printing = interface.find_printing(
         coll=self.collection, set_code='LEA', name='Forest',
         set_number='foo', multiverseid=288)
     # Verify
     self.assertEqual(
         '5ede9781b0c5d157c28a15c3153a455d7d6180fa', printing.id_)
Exemple #6
0
 def test_set_name_num(self):
     # Execute
     printing = interface.find_printing(
         coll=self.collection, set_code='pMGD', name="Black Sun's Zenith",
         set_number='7', multiverseid='foo')
     # Verify
     self.assertEqual(
         '6c9ffa9ffd2cf7e6f85c6be1713ee0c546b9f8fc', printing.id_)
Exemple #7
0
 def test_set_and_name(self):
     # Execute
     printing = interface.find_printing(
         coll=self.collection, set_code='S00', name='Rhox', set_number='foo',
         multiverseid='bar')
     # Verify
     self.assertEqual(
         '536d407161fa03eddee7da0e823c2042a8fa0262', printing.id_)