def quine():
q = '"' * 3
s = """def quine():
q = '"' * 3
s = %s%s%s
return s %% (q, s, q)
"""
return s % (q, s, q)
import codewars_test as test
from inspect import getsource
from solution import quine
# test.assert_equals(actual, expected, [optional] message)
@test.describe("Check source against returned string")
def test_group():
@test.it("Function outputs source")
def test_case():
test.assert_equals(quine(), getsource(quine))