Skip to content

Commit

Permalink
Added tests for autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillarAnand committed May 23, 2015
1 parent bcdf9a8 commit 111e60c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions elpy/tests/test_autopep8.py
@@ -0,0 +1,20 @@
# coding: utf-8

"""Tests for the elpy.autopep module"""

import unittest

from elpy import autopep
from elpy.tests.support import BackendTestCase


class Autopep8TestCase(BackendTestCase):

def setUp(self):
if not autopep.autopep8:
raise unittest.SkipTest

def test_fix_code(self):
code_block = 'x= 123\n'
new_block = autopep.fix_code(code_block)
self.assertEqual(new_block, 'x = 123\n')

0 comments on commit 111e60c

Please sign in to comment.