def search_names(logins):
    assert isinstance(logins, list), 'Must be type list'
    return list(filter((lambda x: x[0][-1] == '_'), logins))

@@ -19,16 +19,160 @@
 ogins):%0A
+    %22%22%22%0A    Examples%0A    --------%0A    %3E%3E%3E search_names(%5B%5B'foo', 'foo@foo.com'%5D, %5B'bar_', 'bar@bar.com'%5D%5D)%0A    %5B%5B'bar_', 'bar@bar.com'%5D%5D%0A    %22%22%22%0A
     asse
@@ -281,8 +281,78 @@
 ogins))%0A
+%0A%0Aif __name__ == '__main__':%0A    import doctest%0A    doctest.testmod()%0A

add doctest