'''
Created on 10/07/2013

@author: luke
'''
import unittest
from string_editting import *

class StringEditingTests(unittest.TestCase):
    """
    StringEditing will contain a bunch of methods to edit
    and play with strings
    """
    def setUp(self):
        self.myString = MyString()
    
    def test_reverse(self):
        """
        Reverse a string takes a string as an input
        and returns the string reversed
        """
        orig        = "Hello World!"
        expected    = "".join(reversed(orig))
        output      = self.myString.reverse(orig)
        self.assertEquals(output, expected, "{0} expected, but got {1}".format(expected, output))

@@ -517,16 +517,80 @@
 d(orig))
+ # Must remember reversed() returns a reversed object - iterable
 %0A       
@@ -730,8 +730,771 @@
 utput))%0A
+        %0A    def test_count_vowels(self):%0A        %22%22%22%0A            Count vowels will take a string and return the amount of vowels contained in the string%0A        %22%22%22%0A        some_string     = %22testing one two three%22 # 7 vowels%0A        no_vowels       = 7%0A        actual          = self.myString.count_vowels(some_string)%0A        self.assertEqual(actual, no_vowels, %22%7B0%7D expected, but got %7B1%7D%22.format(no_vowels, actual))%0A        %0A    def test_is_palindrome(self):%0A        %22%22%22%0A            Returns true if the passed argument is a palindrome%0A        %22%22%22%0A        for phrase in %5B%22mum mum%22, %22racecar%22%5D:%0A            self.assertTrue(self.myString.is_palindrome(phrase))%0A        self.assertFalse(self.myString.is_palindrome(%22not_a_palindrome%22))%0A        %0A        %0A        %0A

add tests for counting vowels and check is_palindrome