def test_diet(self):
     p = MP.diet()
     var = {"protein": 56,"cal": 2500,"fat":83, "sodium":2300, "fiber":38, "carbs":300,"potassium":3000}
     test = p.default_values("man","nutrient")
     #p.default_values()
     self.assertEqual(test['protein'],var['protein'])
     self.assertEqual(test['cal'],var['cal'])
     self.assertEqual(test['fat'],var['fat'])
     self.assertEqual(test['sodium'],var['sodium'])
 def test_manual_display(self):
     m = MP.manual_display("man", "protein")
     y = m.required_bar_graphs()
     
     z = y.patches
     
     self.assertEqual(z[0].get_height(), 56)
     self.assertEqual(z[1].get_height(), 2500)
     self.assertEqual(z[2].get_height(), 83)
     self.assertEqual(z[3].get_height(), 2300)
def setUp_Class(TestMP):
    self.p = MP.diet()
    self.var = {"protein": 56,"cal": 2500,"fat":83, "sodium":2300, "fiber":38, "carbs":300,"potassium":3000}
    self.test = self.p.default_values("man","nutrient")