Replace self.client.<method> with the shorthand self.<method> Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
11 lines
259 B
Python
11 lines
259 B
Python
from __future__ import unicode_literals
|
|
|
|
from ..models import Cabinet
|
|
|
|
from .literals import TEST_CABINET_LABEL
|
|
|
|
|
|
class CabinetTestMixin(object):
|
|
def _create_test_cabinet(self):
|
|
self.test_cabinet = Cabinet.objects.create(label=TEST_CABINET_LABEL)
|