コード例 #1
0
    def test_8_python_files(self):
        import ToDoPutItem
        import ToDoGetItem
        import ToDoUpdateItem

        result = ToDoPutItem.main()
        self.assertEqual(200, result['ResponseMetadata']['HTTPStatusCode'])

        result = ToDoGetItem.main()
        self.assertEqual(200, result['ResponseMetadata']['HTTPStatusCode'])

        result = ToDoUpdateItem.main()
        self.assertEqual(200, result['ResponseMetadata']['HTTPStatusCode'])
コード例 #2
0
 def test_python_files(self):
     import ToDoPutItem
     import ToDoGetItem
     import ToDoUpdateItem
     import ToDoDeleteItem
     import ToDoListItems
     # Test secuencial files
     result = ToDoPutItem.main()
     self.assertEqual(200, result['ResponseMetadata']['HTTPStatusCode'])
     result = ToDoGetItem.main()
     self.assertEqual(200, result['ResponseMetadata']['HTTPStatusCode'])
     result = ToDoUpdateItem.main()
     self.assertEqual(200, result['ResponseMetadata']['HTTPStatusCode'])
     result = ToDoDeleteItem.main()
     self.assertEqual(200, result['ResponseMetadata']['HTTPStatusCode'])
     result = ToDoListItems.main()
     self.assertEqual(200, result['ResponseMetadata']['HTTPStatusCode'])