
import os
import pytest
from csvnc import csvnc


def test_generated_file_should_have_extention_nc():
    data_file = 'data.csv'
    assert 'data.nc' == csvnc.new_name(data_file)



import os
import pytest
from csvnc import csvnc


class TestCsvnc(object):
    def test_generated_file_should_have_extention_nc(self):
        data_file = 'data.csv'
        assert 'data.nc' == csvnc.new_name(data_file)


Add test class for grouping tests
Add test class for grouping tests

  
  import os
  import pytest
  from csvnc import csvnc
  
  
+ class TestCsvnc(object):
- def test_generated_file_should_have_extention_nc():
+     def test_generated_file_should_have_extention_nc(self):
-     data_file = 'data.csv'
+         data_file = 'data.csv'
-     assert 'data.nc' == csvnc.new_name(data_file)
+         assert 'data.nc' == csvnc.new_name(data_file)
  
  
Add test class for grouping tests
## Code Before:

import os
import pytest
from csvnc import csvnc


def test_generated_file_should_have_extention_nc():
    data_file = 'data.csv'
    assert 'data.nc' == csvnc.new_name(data_file)


## Instruction:
Add test class for grouping tests
## Code After:

import os
import pytest
from csvnc import csvnc


class TestCsvnc(object):
    def test_generated_file_should_have_extention_nc(self):
        data_file = 'data.csv'
        assert 'data.nc' == csvnc.new_name(data_file)

