コード例 #1
0
 def test_has_router(self):
     router_mock = self.mock.MagicMock()
     abstract_scribe = archive.AbstractScribe(1, router_mock)
     self.assertEqual(router_mock, abstract_scribe.router)
コード例 #2
0
 def test_should_raise_not_implemented(self):
     abstract_scribe = archive.AbstractScribe(1, self.mock.MagicMock())
     with self.assertRaises(exceptions.NoImplementationError):
         abstract_scribe.save(file=self.mock.MagicMock())
コード例 #3
0
 def test_has_user_id(self):
     abstract_scribe = archive.AbstractScribe(1, self.mock.MagicMock())
     self.assertEqual(1, abstract_scribe.user_id)
コード例 #4
0
 def setUp(self):
     self.abstract_scribe = archive.AbstractScribe(1, self.mock.MagicMock())