test_buggy_functions

test_buggy_functions - assert not

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import nose import buggy_functions def test_is_lowercase_empty(): assert buggy_functions.is_lowercase(""), "The empty string" def test_is_lowercase_correct(): assert buggy_functions.is_lowercase("abcdef"), "Lowercase string" def test_is_lowercase_nonletter():
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: assert not buggy_functions.is_lowercase("a123.,!a"), \ "Non-alphabetic string" def test_is_lowercase_uppercase(): assert not buggy_functions.is_lowercase("abCdef"), "Uppercase string" if __name__ == '__main__': nose.runmodule()...
View Full Document

Ask a homework question - tutors are online