Пример #1
0
    def test_all_JSON_functionality(self):
        json = JSON_Interface()
        string = json.from_JSON('test_input.txt')
        json.create_events_from_JSON_string(string, self.db)

        convert = JSON_Interface()

        converted = convert.all_events_from_DB_to_JSON(self.db)
        f = open("test_output.txt", 'w')
        f.write(converted)
        f.close()
Пример #2
0
	def test_all_JSON_functionality(self):
		json = JSON_Interface()
		string = json.from_JSON('test_input.txt')
		json.create_events_from_JSON_string(string, self.db)

		convert = JSON_Interface()

		converted = convert.all_events_from_DB_to_JSON(self.db)
		f = open("test_output.txt", 'w')
		f.write(converted)
		f.close()