'Test the list Volume Shadow Copies flow.'

def testListVolumeShadowCopies(self):

    flow_name = windows_vsc.ListVolumeShadowCopies.__name__
    for _ in flow_test_lib.TestFlowHelper(flow_name, TestClient(), token=self.token, client_id=self.client_id):
        pass
    fd = aff4.FACTORY.Open(self.client_id.Add('fs/tsk/\\\\.\\HarddiskVolumeShadowCopy3'), token=self.token)
    children = list(fd.ListChildren())
    self.assertEqual(len(children), 10)
    self.assertEqual([x.Basename() for x in sorted(children)], [('file    %s' % i) for i in range(10)])
