from text_sentiment.app import *
from text_sentiment.tests.fixtures.constants import *
import pytest

#For later use
"""
@pytest.fixture(scope="module")
def specific_func_needed():
    pass #Initiate
    v = 0
    yield v
    pass #close

@pytest.make.parametrize("test_input, text_output",
                        [
                            (),
                            (),
                            (),
                        ])
"""

class TestFileAnalyzer(object):
    def test_general(self):
        f = FileAnalyzer(file_path=TEST_DOC)
        line_gen = f._openfile()
        gen1 = f.makechunk(line_generator=line_gen,chunk_size=2)
        gen2 = f.clean(gen1)
        for i in f.countwords(gen2):
            print(i)

@@ -141,340 +141,763 @@
 pe=%22
-module
+class
 %22)%0Adef 
-specific_func_needed():%0A    pass #Initiate%0A    v = 0%0A    yield v%0A    pass #close%0A%0A@pytest.make.parametrize(%22test_input, text_output%22,%0A                    
+file_class(): #FileAnalyzer class%0A    fa = FileAnalyzer(file_path=TEST_DOC)%0A    yield fa%0A%22%22%22%0A%22%22%22%0A@pytest.fixture(scope=%22module%22)%0Adef db(): #DBLookup class%0A    pass #Initiate%0A    v = 0%0A    yield v%0A    pass #close%0A%22%22%22%0A%0Aclass TestFileAnalyzer():%0A    @pytest.mark.skip%0A    def test_general(self):%0A        f = FileAnalyzer(file_path=TEST_DOC)%0A        line_gen = f._openfile()%0A
     
-%5B%0A
     
-                        (),%0A                            (),%0A                            (),%0A                        %5D)%0A%22%22%22%0A%0Aclass TestFileAnalyzer(object):
+gen1 = f.makechunk(line_generator=line_gen,chunk_size=2)%0A        gen2 = f.clean(gen1)%0A        for i in f.countwords(gen2):%0A            print(i)%0A%0A    def test_openfile(self):%0A        f = FileAnalyzer(file_path=TEST_DOC)%0A        line_gen = f._openfile()%0A        output = list(line_gen)%0A        assert len(output) == 7%0A        assert output%5B0%5D == 'This is line one.'%0A
 %0A   
@@ -898,39 +898,41 @@
 '%0A%0A    def test_
-general
+makechunk
 (self):%0A        
@@ -1001,36 +1001,43 @@
 nfile()%0A        
-gen1
+dirtychunks
  = f.makechunk(l
@@ -1047,121 +1047,170 @@
 _gen
-erator=line_gen,chunk_size=2)%0A        gen2 = f.c
+,3)%0A        output = list(dirtychunks)%0A        assert 
 le
-a
 n(
-gen1)%0A        for i in f.countwords(gen2):%0A            print(i)
+output) == 3%0A        assert output%5B0%5D == 'This is line one. My second line. Third line is the charm.'%0A%0A    
 %0A

Add more to tests