Esempio n. 1
0
 def test_UpdateToolShed(self):
     """
     """
     toolUtils.updateToolShed(
         self.ncTool,
         Shed.objects.all()[0])  #tesging updatetoolshed and gettoolshed
     self.assertEqual(toolUtils.getToolShed(self.ncTool),
                      Shed.objects.all()[0])
Esempio n. 2
0
 def test_GetAllToolsInShed(self):
     """
     """
     self.assertIn(
         self.ncTool,
         toolUtils.getAllToolsInShed(toolUtils.getToolShed(self.ncTool)))
Esempio n. 3
0
 def test_getToolShed(self):
     """
     """
     self.assertEqual(toolUtils.getToolShed(self.ncTool), None)
Esempio n. 4
0
 def test_getToolShed(self):
     """
     """
     self.assertEqual (toolUtils.getToolShed(self.ncTool), None)
Esempio n. 5
0
 def test_GetAllToolsInShed(self):
     """
     """
     self.assertIn (self.ncTool, toolUtils.getAllToolsInShed(toolUtils.getToolShed(self.ncTool)))
Esempio n. 6
0
 def test_UpdateToolShed(self):
     """
     """
     toolUtils.updateToolShed (self.ncTool, Shed.objects.all()[0])   #tesging updatetoolshed and gettoolshed
     self.assertEqual (toolUtils.getToolShed(self.ncTool), Shed.objects.all()[0])