Skip to content

Commit

Permalink
Improve attributes coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Oct 18, 2013
1 parent 6275e71 commit de3b939
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,22 @@ def test_replace_attribute(self):
)
)

def test_replace_attribute_dry_run(self):
attributes.replace_attribute(
'test_app',
'__version__',
'1.0.0',
dry_run=True
)

expected_content = list(self.initial_init_content)
self.assertEquals(
'\n'.join(expected_content),
''.join(
open(self.tmp_file).readlines()
)
)

def test_has_attribute(self):
self.assertTrue(
attributes.has_attribute(
Expand Down

0 comments on commit de3b939

Please sign in to comment.