Exemple #1
0
    def do_print_unallocated(self, args):
        """
        Prints out all the unallocated people in the System 
        Also writes out the unallocated people to a text file if specified 

        Usage: print_unallocated [--o=filename]
        """
        if args["--o"] is None:
            print(Amity.print_unallocated())
        else:
            print(Amity.print_unallocated(args["--o"]))
Exemple #2
0
 def test_prints_unallocated(self):
     #test that it prints out unallocated to a test file
     Amity.print_unallocated("unallocated.txt")
     self.assertTrue(path.isfile("./datafiles/unallocated.txt"))