def test_du_diff_plaintext(self):
     environ = {'PATH_INFO': '/dir/2016-02-03..2016-02-04.txt'}
     view, args = d2h.dispatch(environ)
     self.assertEqual(view, d2h.render_du_diff)
     self.assertEqual(args,
                      (environ, 'dir', '2016-02-03', '2016-02-04', '.txt'))
 def test_stylesheet(self):
     view, args = d2h.dispatch({'PATH_INFO': '/style.css'})
     self.assertEqual(view, d2h.stylesheet)
     self.assertEqual(args, ())
 def test_bootstrap_stylesheet(self):
     view, args = d2h.dispatch(
         {'PATH_INFO': '/static/css/bootstrap.min.css'})
     self.assertEqual(view, d2h.bootstrap_stylesheet)
     self.assertEqual(args, ())
 def test_not_found(self):
     view, args = d2h.dispatch({'PATH_INFO': '/404'})
     self.assertEqual(view, d2h.not_found)
     self.assertEqual(args, ())
 def test_du_diff_plaintext(self):
     environ = {'PATH_INFO': '/dir/2016-02-03..2016-02-04.txt'}
     view, args = d2h.dispatch(environ)
     self.assertEqual(view, d2h.render_du_diff)
     self.assertEqual(args, (environ, 'dir', '2016-02-03', '2016-02-04', '.txt'))
 def test_bootstrap_stylesheet(self):
     view, args = d2h.dispatch({'PATH_INFO': '/static/css/bootstrap.min.css'})
     self.assertEqual(view, d2h.bootstrap_stylesheet)
     self.assertEqual(args, ())
 def test_stylesheet(self):
     view, args = d2h.dispatch({'PATH_INFO': '/style.css'})
     self.assertEqual(view, d2h.stylesheet)
     self.assertEqual(args, ())
 def test_not_found(self):
     view, args = d2h.dispatch({'PATH_INFO': '/404'})
     self.assertEqual(view, d2h.not_found)
     self.assertEqual(args, ())