Esempio n. 1
0
 def test_weight_combined(self):
     """
     Tests combined weight
     """
     md = MinData(common=1,
                  corrosive=2,
                  base=3,
                  noble=4,
                  rare=5,
                  precious=6,
                  radioactive=7,
                  exotic=8)
     self.assertEqual(md.weight(), 36)
Esempio n. 2
0
 def test_weight_exotic(self):
     """
     Tests the weight for exotic
     """
     md = MinData(exotic=3)
     self.assertEqual(md.weight(), 3)
Esempio n. 3
0
 def test_weight_precious(self):
     """
     Tests the weight for precious
     """
     md = MinData(precious=3)
     self.assertEqual(md.weight(), 3)
Esempio n. 4
0
 def test_weight_radioactive(self):
     """
     Tests the weight for radioactive
     """
     md = MinData(radioactive=3)
     self.assertEqual(md.weight(), 3)
Esempio n. 5
0
 def test_weight_noble(self):
     """
     Tests the weight for noble
     """
     md = MinData(noble=3)
     self.assertEqual(md.weight(), 3)
Esempio n. 6
0
 def test_weight_base(self):
     """
     Tests the weight for base
     """
     md = MinData(base=3)
     self.assertEqual(md.weight(), 3)
Esempio n. 7
0
 def test_weight_corrosive(self):
     """
     Tests the weight for corrosive
     """
     md = MinData(corrosive=3)
     self.assertEqual(md.weight(), 3)
Esempio n. 8
0
 def test_weight_common(self):
     """
     Tests the weight for common
     """
     md = MinData(common=3)
     self.assertEqual(md.weight(), 3)
Esempio n. 9
0
 def test_weight_empty(self):
     """
     Tests the weight for empty
     """
     md = MinData()
     self.assertEqual(md.weight(), 0)