import math


def find_next_square(sq):
    root = math.sqrt(sq)
    return -1 if root % 1 else (root + 1) ** 2


class TestFindNextSquare(unittest.TestCase):

    def test_not_perfect_square(self):
        self.assertEqual(find_next_square(111), -1)

    def test_perfect_sqaure(self):
        self.assertEqual(find_next_square(121), 144)

7b7087fc5bb9f9b241a231aa896fc7d770ff336e
<mask token>


class TestFindNextSquare(unittest.TestCase):
    <mask token>
    <mask token>

<mask token>


class TestFindNextSquare(unittest.TestCase):

    def test_not_perfect_square(self):
        self.assertEqual(find_next_square(111), -1)

    def test_perfect_sqaure(self):
        self.assertEqual(find_next_square(121), 144)

<mask token>


def find_next_square(sq):
    root = math.sqrt(sq)
    return -1 if root % 1 else (root + 1) ** 2


class TestFindNextSquare(unittest.TestCase):

    def test_not_perfect_square(self):
        self.assertEqual(find_next_square(111), -1)

    def test_perfect_sqaure(self):
        self.assertEqual(find_next_square(121), 144)

import math


def find_next_square(sq):
    root = math.sqrt(sq)
    return -1 if root % 1 else (root + 1) ** 2


class TestFindNextSquare(unittest.TestCase):

    def test_not_perfect_square(self):
        self.assertEqual(find_next_square(111), -1)

    def test_perfect_sqaure(self):
        self.assertEqual(find_next_square(121), 144)
