def test_has_router(self): router_mock = self.mock.MagicMock() abstract_scribe = archive.AbstractScribe(1, router_mock) self.assertEqual(router_mock, abstract_scribe.router)
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())
def test_has_user_id(self): abstract_scribe = archive.AbstractScribe(1, self.mock.MagicMock()) self.assertEqual(1, abstract_scribe.user_id)
def setUp(self): self.abstract_scribe = archive.AbstractScribe(1, self.mock.MagicMock())