コード例 #1
0
    def test_a_u_not_i_uppercase(self):
        # Arrange
        text = "UNDERDOG"

        # Act
        output = modifiers.a(text)

        # Assert
        self.assertEqual(output, "an UNDERDOG")
コード例 #2
0
    def test_a_u_something_i_uppercase(self):
        # Arrange
        text = "UNICORN"

        # Act
        output = modifiers.a(text)

        # Assert
        self.assertEqual(output, "a UNICORN")
コード例 #3
0
    def test_a_u_not_i(self):
        # Arrange
        text = "underdog"

        # Act
        output = modifiers.a(text)

        # Assert
        self.assertEqual(output, "an underdog")
コード例 #4
0
    def test_a_consonant_uppercase(self):
        # Arrange
        text = "HOUSE"

        # Act
        output = modifiers.a(text)

        # Assert
        self.assertEqual(output, "a HOUSE")
コード例 #5
0
    def test_a_u_something_i(self):
        # Arrange
        text = "unicorn"

        # Act
        output = modifiers.a(text)

        # Assert
        self.assertEqual(output, "a unicorn")
コード例 #6
0
    def test_a_vowel_uppercase(self):
        # Arrange
        text = "ELEPHANT"

        # Act
        output = modifiers.a(text)

        # Assert
        self.assertEqual(output, "an ELEPHANT")
コード例 #7
0
    def test_a_consonant(self):
        # Arrange
        text = "house"

        # Act
        output = modifiers.a(text)

        # Assert
        self.assertEqual(output, "a house")
コード例 #8
0
ファイル: test_modifiers.py プロジェクト: thecerial/pytracery
    def test_a_vowel(self):
        # Arrange
        input = "elephant"

        # Act
        output = modifiers.a(input)

        # Assert
        self.assertEqual(output, "an elephant")
コード例 #9
0
    def test_a_vowel(self):
        # Arrange
        text = "elephant"

        # Act
        output = modifiers.a(text)

        # Assert
        self.assertEqual(output, "an elephant")
コード例 #10
0
ファイル: test_modifiers.py プロジェクト: thecerial/pytracery
    def test_a_u_something_i(self):
        # Arrange
        input = "unicorn"

        # Act
        output = modifiers.a(input)

        # Assert
        self.assertEqual(output, "a unicorn")
コード例 #11
0
ファイル: test_modifiers.py プロジェクト: thecerial/pytracery
    def test_a_u_not_i(self):
        # Arrange
        input = "underdog"

        # Act
        output = modifiers.a(input)

        # Assert
        self.assertEqual(output, "an underdog")
コード例 #12
0
ファイル: test_modifiers.py プロジェクト: thecerial/pytracery
    def test_a_consonant(self):
        # Arrange
        input = "house"

        # Act
        output = modifiers.a(input)

        # Assert
        self.assertEqual(output, "a house")
コード例 #13
0
ファイル: test_modifiers.py プロジェクト: aparrish/pytracery
    def test_a_u_not_i_uppercase(self):
        # Arrange
        text = "UNDERDOG"

        # Act
        output = modifiers.a(text)

        # Assert
        self.assertEqual(output, "an UNDERDOG")
コード例 #14
0
ファイル: test_modifiers.py プロジェクト: aparrish/pytracery
    def test_a_u_something_i_uppercase(self):
        # Arrange
        text = "UNICORN"

        # Act
        output = modifiers.a(text)

        # Assert
        self.assertEqual(output, "a UNICORN")
コード例 #15
0
ファイル: test_modifiers.py プロジェクト: aparrish/pytracery
    def test_a_consonant_uppercase(self):
        # Arrange
        text = "HOUSE"

        # Act
        output = modifiers.a(text)

        # Assert
        self.assertEqual(output, "a HOUSE")
コード例 #16
0
ファイル: test_modifiers.py プロジェクト: aparrish/pytracery
    def test_a_vowel_uppercase(self):
        # Arrange
        text = "ELEPHANT"

        # Act
        output = modifiers.a(text)

        # Assert
        self.assertEqual(output, "an ELEPHANT")