try:
tval1 = sorted(weak_pws)
except:
tval1 = "DNE"
t1 = TestObjective()
t1.add_success( tval1 == ['123456', 'hello1', 'password', 'password123', 'snuffles'], "Great job!")
t1.add_failure(tval1 == "DNE", "Oops! Did you delete your weak_pws list?")
t1.add_failure(tval1 == ['cat', 'dog', 'pig'], "Did you change the values in your weak_pws list?")
t1.add_failure('password' not in tval1, 'Make sure your weak password list includes "password"!')
t1.add_failure('password123'not in tval1, 'Make sure your weak password list includes "password123"!')
t1.add_failure('hello1' not in tval1, 'Make sure your weak password list includes "hello1"!')
t1.add_failure( 'snuffles' not in tval1, 'Make sure your weak password list includes "snuffles"!')
t1.add_failure('123456' not in tval1, 'Make sure your weak password list includes "123456"!')
t1.add_failure(len(tval1) < 5, "Oops! Did you add all the strings to the list and seperate the values witha comma?")
tester = TestManager()
tester.add_test_list([t1])
tester.run_tests()
tester.display_first_feedback()
Are you already running a Codesters project in another tab or window?
Micro:bit can only connect to one web page at a time.
Try stopping other Codesters projects or closing
other tabs or windows that may be using your Micro:bit.
If that doesn't fix the problem try disconnecting your Micro:bit,
reloading this page, and reconnecting your Micro:bit.