'Class using project relation mixin class'

def test_project_relation(self):

    class FoobarView(ProjectRelationMixin, ContextMixin, ):
        model = Domain
        def get_project_queryset(self):
            return Project.objects.all()
    view = FoobarView()
    view.kwargs = {'project_slug': 'kong'}
    self.assertEqual(view.get_project(), self.project)
    self.assertEqual(view.get_queryset().first(), self.domain)
    self.assertEqual(view.get_context_data()['project'], self.project)
