# Path: incuna_test_utils/utils.py
# TEST_SERVER = 'http://testserver'
# def next_mro_class(cls, current):
# def import_path(cls):
# def isolate_method(cls, mixin, method_name, parent_return_value=None):
# def field_names(model):
# 
# Path: tests/models.py
# class User(models.Model):
#     email = models.CharField(max_length=255)
#     name = models.CharField(max_length=255)
# 
#     USERNAME_FIELD = 'email'


from incuna_test_utils import utils
from .models import User



class Parent(object):
    def method(self):
        return {'foo'}


class Mixin(object):
    def method(self):
        data = super(Mixin, self).method()
        data.add('bar')
        return data


class Child(Mixin, Parent):
    pass


def test_next_mro_class():
    assert utils.next_mro_class(Child, Mixin) == Parent


def test_import_path():

# Path: incuna_test_utils/utils.py
# TEST_SERVER = 'http://testserver'
# def next_mro_class(cls, current):
# def import_path(cls):
# def isolate_method(cls, mixin, method_name, parent_return_value=None):
# def field_names(model):
# 
# Path: tests/models.py
# class User(models.Model):
#     email = models.CharField(max_length=255)
#     name = models.CharField(max_length=255)
# 
#     USERNAME_FIELD = 'email'


# Path: tests/test_utils.py
from incuna_test_utils import utils
from .models import User




class Parent(object):
    def method(self):
        return {'foo'}


class Mixin(object):
    def method(self):
        data = super(Mixin, self).method()
        data.add('bar')
        return data


class Child(Mixin, Parent):
    pass


def test_next_mro_class():
    assert utils.next_mro_class(Child, Mixin) == Parent


def test_import_path():

    assert utils.import_path(Child) == 'tests.test_utils.Child'