Example #1
0
 def test_value_combined(self):
     """
     Tests combined value
     """
     md = MinData(common=1,
                  corrosive=2,
                  base=3,
                  noble=4,
                  rare=5,
                  precious=6,
                  radioactive=7,
                  exotic=8)
     self.assertEqual(md.value(), 347)
Example #2
0
 def test_value_radioactive(self):
     """
     Tests the value for radioactive
     """
     md = MinData(radioactive=3)
     self.assertEqual(md.value(), 24)
Example #3
0
 def test_value_precious(self):
     """
     Tests the value for precious
     """
     md = MinData(precious=3)
     self.assertEqual(md.value(), 18)
Example #4
0
 def test_value_rare(self):
     """
     Tests the value for rare
     """
     md = MinData(rare=3)
     self.assertEqual(md.value(), 15)
Example #5
0
 def test_value_noble(self):
     """
     Tests the value for noble
     """
     md = MinData(noble=3)
     self.assertEqual(md.value(), 12)
Example #6
0
 def test_value_base(self):
     """
     Tests the value for base
     """
     md = MinData(base=3)
     self.assertEqual(md.value(), 9)
Example #7
0
 def test_value_corrosive(self):
     """
     Tests the value for corrosive
     """
     md = MinData(corrosive=3)
     self.assertEqual(md.value(), 6)
Example #8
0
 def test_value_common(self):
     """
     Tests the value for common
     """
     md = MinData(common=3)
     self.assertEqual(md.value(), 3)
Example #9
0
 def test_value_empty(self):
     """
     Tests the value for empty
     """
     md = MinData()
     self.assertEqual(md.value(), 0)
Example #10
0
 def test_value_exotic(self):
     """
     Tests the value for exotic
     """
     md = MinData(exotic=3)
     self.assertEqual(md.value(), 75)