def METHOD_NAME(self):
    expected = self.VALID_SPEC
    with tempfile.NamedTemporaryFile("w") as f:
        f.write(json.dumps(self.VALID_SPEC))
        f.flush()
        actual = AirbyteSpec.from_file(f.name)
        assert expected == json.loads(actual.spec_string)