コード例 #1
0
ファイル: old_tests.py プロジェクト: roycohen2013/TheSquad
 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])
コード例 #2
0
ファイル: old_tests.py プロジェクト: roycohen2013/TheSquad
 def test_GetAllToolsInShed(self):
     """
     """
     self.assertIn(
         self.ncTool,
         toolUtils.getAllToolsInShed(toolUtils.getToolShed(self.ncTool)))
コード例 #3
0
ファイル: old_tests.py プロジェクト: roycohen2013/TheSquad
 def test_getToolShed(self):
     """
     """
     self.assertEqual(toolUtils.getToolShed(self.ncTool), None)
コード例 #4
0
 def test_getToolShed(self):
     """
     """
     self.assertEqual (toolUtils.getToolShed(self.ncTool), None)
コード例 #5
0
 def test_GetAllToolsInShed(self):
     """
     """
     self.assertIn (self.ncTool, toolUtils.getAllToolsInShed(toolUtils.getToolShed(self.ncTool)))
コード例 #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])