def test_print_rmse_5 (self) :
     w = StringIO()
     netflix_print_rmse(w, 192.3)
     self.assertEqual(w.getvalue(), "RMSE: 192.30\n")
	def test_print_rmse(self):
		w = StringIO()
		netflix_print_rmse(w, '0.9845693')
		self.assertEqual(w.getvalue(), 'RMSE: 0.98')
 def test_print_rmse_2 (self) :
     w = StringIO()
     netflix_print_rmse(w, 92)
     self.assertEqual(w.getvalue(), "RMSE: 92.00\n")
 def test_print_rmse_4 (self) :
     w = StringIO()
     netflix_print_rmse(w, 1.772)
     self.assertEqual(w.getvalue(), "RMSE: 1.77\n")
 def test_print_rmse_1 (self) :
     w = StringIO()
     netflix_print_rmse(w, .951)
     self.assertEqual(w.getvalue(), "RMSE: 0.95\n")
Beispiel #6
0
 def test_print_rmse_5(self):
     w = StringIO()
     netflix_print_rmse(w, 192.3)
     self.assertEqual(w.getvalue(), "RMSE: 192.30\n")
Beispiel #7
0
 def test_print_rmse_4(self):
     w = StringIO()
     netflix_print_rmse(w, 1.772)
     self.assertEqual(w.getvalue(), "RMSE: 1.77\n")
Beispiel #8
0
 def test_print_rmse_2(self):
     w = StringIO()
     netflix_print_rmse(w, 92)
     self.assertEqual(w.getvalue(), "RMSE: 92.00\n")
Beispiel #9
0
 def test_print_rmse_1(self):
     w = StringIO()
     netflix_print_rmse(w, .951)
     self.assertEqual(w.getvalue(), "RMSE: 0.95\n")