Exemple #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])
Exemple #2
0
 def test_GetAllToolsInShed(self):
     """
     """
     self.assertIn(
         self.ncTool,
         toolUtils.getAllToolsInShed(toolUtils.getToolShed(self.ncTool)))
Exemple #3
0
 def test_getToolShed(self):
     """
     """
     self.assertEqual(toolUtils.getToolShed(self.ncTool), None)
 def test_getToolShed(self):
     """
     """
     self.assertEqual (toolUtils.getToolShed(self.ncTool), None)
 def test_GetAllToolsInShed(self):
     """
     """
     self.assertIn (self.ncTool, toolUtils.getAllToolsInShed(toolUtils.getToolShed(self.ncTool)))
 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])