def setUp(self): super(TestSerializingPopulatedDashboard, self).setUp() self.dash = DashboardFactory() self.user = self.dash.creator self.auth = AuthFactory(user=self.user) self.init_dash_hgrid = rubeus.to_project_hgrid(self.dash, self.auth)
def setUp(self): super(TestSerializingNodeWithAddon, self).setUp() self.auth = AuthFactory() self.project = ProjectFactory(creator=self.auth.user) self.project.get_addons = mock.Mock() self.project.get_addons.return_value = [mock_addon] self.serializer = rubeus.NodeFileCollector(node=self.project, auth=self.auth)
def test_factory(self): auth_obj = AuthFactory() assert_true(isinstance(auth_obj.user, auth.User))
def test_repr(self): auth = AuthFactory() rep = repr(auth) assert_in(str(auth.user), rep)
def setUp(self): super(TestSmartFolderViews, self).setUp() self.dash = DashboardFactory() self.user = self.dash.creator self.auth = AuthFactory(user=self.user)
def setUp(self): super(TestSerializingFolders, self).setUp() self.user = UserFactory() self.auth = AuthFactory(user=self.user)
def setUp(self): super(TestSerializingEmptyDashboard, self).setUp() self.dash = DashboardFactory() self.auth = AuthFactory(user=self.dash.creator) self.dash_hgrid = rubeus.to_project_hgrid(self.dash, self.auth)