Exemplo n.º 1
0
	def test_create_file(self):
		Store.set_file(file_path)
		self.assertTrue(Store.create_file)
Exemplo n.º 2
0
	def test_read_data_from_file(self):
		Store.set_file(file_path)
		a = ["Iron Man3", "2013", "8.5"]
		b = Store.read_data_from_file()[0]
		self.assertListEqual(a, b)
Exemplo n.º 3
0
	def test_is_the_file_usable(self):
		Store.set_file(file_path)
		self.assertTrue(Store.is_usable())
Exemplo n.º 4
0
	def test_class_variable_file(self):
		Store.set_file(file_path)
		self.assertEqual(file_path,Store.file_name) 
Exemplo n.º 5
0
	def test_read_movies_from_file(self):
		Store.set_file(file_path)
		a = Movie.read_movies_from_file()[0]
		self.assertIsInstance(a, Movie)
Exemplo n.º 6
0
	def test_add_movie_into_file(self):
		Store.set_file(file_path)
		args = ["Super Man", "2013", "8.5"]
		self.assertTrue(Movie.add_movie_into_file(args))