def test_basic_list_snapshots(self):
        """
        Test the basic snapshot
        """
        # Set the arguments to just list the snapshot versions
        self.args.list_snapshots = True

        # Call the tool to list the snapshots
        aciconfigdb.main(self.args)

        # Check the output
        self.assertEquals(self.fake_out.output[0], 'Versions')
        self.assertEquals(self.fake_out.output[1], '\n')
    def test_basic_snapshot_v1(self):
        """
        Test the basic snapshot
        """
        # Call the tool to list the snapshots
        self.args.list_snapshots = True
        aciconfigdb.main(self.args)

        # Get the number of snapshots
        num_versions = len(self.fake_out.output)

        # Take the snapshot
        self.args.list_snapshots = False
        aciconfigdb.main(self.args)
        self.fake_out.clear_output()

        # Call the tool to list the snapshots
        self.args.list_snapshots = True
        aciconfigdb.main(self.args)

        # Get the number of snapshots
        num_new_versions = len(self.fake_out.output)
        self.assertEquals(num_versions + 2, num_new_versions)