def test_invalid_quarter(self):
   out = views.show_user_stats_json(MockRequestGet(), 'user', '2012-q5')
   self.assertEqual(404, out.status_code)
 def test_invalid_date_future(self):
   out = views.show_user_stats_json(MockRequestGet(), 'user', '3010-01-01')
   self.assertEqual(404, out.status_code)
 def trigger_request_show(self, key, expected):
   self.assert_json(
       views.show_user_stats_json(MockRequestGet(), 'user', key),
       expected)
 def test_invalid_month(self):
     out = views.show_user_stats_json(MockRequestGet(), "user", "2012-13")
     self.assertEqual(404, out.status_code)
Exemple #5
0
 def test_invalid_date_future(self):
   out = views.show_user_stats_json(MockRequestGet(), 'user', '3010-01-01')
   self.assertEqual(404, out.status_code)
Exemple #6
0
 def test_invalid_quarter(self):
   out = views.show_user_stats_json(MockRequestGet(), 'user', '2012-q5')
   self.assertEqual(404, out.status_code)
Exemple #7
0
 def trigger_request_show(self, key, expected):
   self.assert_json(
       views.show_user_stats_json(MockRequestGet(), 'user', key),
       expected)