def handle(self, *args, **options): try: Port.load(options['path']) except FileNotFoundError: raise CommandError( '"{}" not found. Make sure "{}" is a valid JSON file and is in the root of the project' .format(options['path'], options['path']))
def setUp(self): Port.load(TEST_PORTINDEX_JSON)
def setUp(self): self.client = Client() Port.load(TEST_PORTINDEX_JSON)