import unittest

from Repositories.DataRepositories import WordRepository


class WordRespositoriesTest( unittest.TestCase ):
    def setUp(self):
        self.object = WordRepository()

    @unittest.skip
    def test_get_word_happy_modify_existing( self ):
        w = self.object.get_word( 'taco1' )
        w.word = 'taco taco'
        result = self.object.write_to_db( w )
        self.assertTrue( result )


if __name__ == '__main__':
    unittest.main( )

import unittest

from Repositories.DataRepositories import WordRepository


class WordRespositoriesTest( unittest.TestCase ):
    def setUp(self):
        self.object = WordRepository()

    @unittest.skip
    def test_get_word_happy_modify_existing( self ):
        w = self.object.get_word( 'taco1' )
        w.word = 'taco taco'
        result = self.object.write_to_db( w )
        self.assertTrue( result )


if __name__ == '__main__':
    unittest.main( )
